home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Games
/
NeXTmille
/
Source
/
HandTileView.h
< prev
next >
Wrap
Text File
|
1990-12-08
|
1KB
|
41 lines
/* Generated by Interface Builder */
#import "CardHolder.h"
#import "CardView.h"
#import "mille.h"
// This class holds the hand for each player.
// Cards are drawn juxtaposed.
@interface HandTileView:CardHolder
{
// This is the player's hand. A player holds a fixed number
// of cards which are stored in this array. Its position in the
// array is relative to its position in the view.
CardView *myHand[ HAND_SIZE ];
}
+ newFrame:( const NXRect * )frameRect;
// The new card is always placed at 0, which is the left most
// card holder. If there are any empty slots the card is moved
// to the empty slot.
- addCard:( CardView * )aCard :sender;
// When a card is removed from the view its slot is always filled
// with the card at 0.
- removeCard:( CardView * )aCard :sender;
// Overrides the superclass methods. They remove a card(s) from the subview
// list and send them to some other object.
- sendCard:( CardView * )aCard to:anObject;
- sendAllCardsTo:anObject;
// A private method. When a card is added or deleted from the view
// the view is reordered.
- _adjustCards;
@end